package com.lzh.tiktok.user.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoResponseVo {
    /**
     * 状态码，0是成功 其他值是失败
     */
    private Integer status_code;
    /**
     * 状态描述
     */
    private String status_msg;
    /**
     * 发布视频列表
     */
    private List<VideoVo> video_list;
    public static VideoResponseVo suceess(List<VideoVo> video_list){
        return new VideoResponseVo(0,"成功",video_list);
    }
    public static VideoResponseVo fail(){
        return new VideoResponseVo(-1,"失败",null);
    }
}
